package com.homedo.microservice.open.service.gateway.zuul.conf;

import com.google.common.collect.Maps;

import java.util.Map;
import java.util.concurrent.atomic.AtomicReference;

public class DomainConf {
    private static DomainConf instance = new DomainConf();

    private static final AtomicReference<Map<String, String>> confsRef = new AtomicReference<Map<String, String>>(Maps.newConcurrentMap());
    
    private DomainConf() {
    }

    public static DomainConf getInstance() {
        return instance;
    }

    public Map<String, String> getConfs() {
        return confsRef.get();
    }
}
